package com.zy.mydemo.api.service.impl;

import com.zy.mydemo.api.service.RoleService;
import com.zy.mydemo.common.entity.RoleEntity;
import com.zy.mydemo.common.mapper.RoleMapper;
import com.zy.mydemo.common.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:zhongyong
 * @Description：
 * @Date：Create in 2020/05/11
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired(required = false)
    RoleMapper roleMapper;

    @Override
    public ResultUtils getList() {
        List<RoleEntity> list = roleMapper.getList();
        return ResultUtils.success("成功", list);
    }
}
